package com.ktgj.service.mapper;

import java.util.List;
import com.ktgj.service.domain.ContractAttachment;

/**
 * 合同附件Mapper接口
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
public interface ContractAttachmentMapper 
{
    /**
     * 查询合同附件
     * 
     * @param attachmentId 合同附件ID
     * @return 合同附件
     */
    public ContractAttachment selectContractAttachmentById(Long attachmentId);

    /**
     * 查询合同附件列表
     * 
     * @param contractAttachment 合同附件
     * @return 合同附件集合
     */
    public List<ContractAttachment> selectContractAttachmentList(ContractAttachment contractAttachment);

    /**
     * 新增合同附件
     * 
     * @param contractAttachment 合同附件
     * @return 结果
     */
    public int insertContractAttachment(ContractAttachment contractAttachment);

    /**
     * 修改合同附件
     * 
     * @param contractAttachment 合同附件
     * @return 结果
     */
    public int updateContractAttachment(ContractAttachment contractAttachment);

    /**
     * 删除合同附件
     * 
     * @param attachmentId 合同附件ID
     * @return 结果
     */
    public int deleteContractAttachmentById(Long attachmentId);

    /**
     * 批量删除合同附件
     * 
     * @param attachmentIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteContractAttachmentByIds(Long[] attachmentIds);

    /**
     * 根据合同id查询是否存在附件信息
     * @param contractId 合同id
     * @return
     */
    public ContractAttachment selectContractAttachmentByContractId(Long contractId);


}
